<?php

namespace app\index\model;

use think\Model;

class Type extends BaseModel
{
    public static function getByType($type)
    {
        return self::where('typedata', $type)->where("onlineswitch", '>', 0)->order("weigh desc")->select();
    }
}
